return {
  -- 启用C++ LSP支持
  {
    'LazyVim/LazyVim',
    opts = {
      extras = {
        'lazyvim.plugins.extras.lang.clangd',
      },
    },
  },

  -- 配置clangd LSP
  {
    'neovim/nvim-lspconfig',
    opts = {
      servers = {
        clangd = {
          cmd = {
            'clangd',
            '--background-index',
            '--clang-tidy',
            '--header-insertion=iwyu',
            '--completion-style=detailed',
            '--function-arg-placeholders',
            '--fallback-style=llvm',
          },
          init_options = {
            usePlaceholders = true,
            completeUnimported = true,
            clangdFileStatus = true,
          },
          filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
        },
      },
    },
  },

  -- 代码格式化
  {
    'stevearc/conform.nvim',
    opts = {
      formatters_by_ft = {
        c = { 'clang_format' },
        cpp = { 'clang_format' },
      },
    },
  },
}
